import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
    let cooke = Cookies.get(TokenKey);
    console.log("获取 Cookies" + cooke);
    return cooke;
}

export function setToken(token) {
    console.log("设置 Cookies1" + token);
    console.log("设置 Cookies2" + Cookies);
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}
